let test = new Promise((resolve, reject) => {
    resolve(Date.now())
    reject("error")
})

test.then((timeRes) => {
    console.log(timeRes)
}).catch((err) => {
    console.log(err)
})
